import request from "@/utils/request";
//暂存点列表
export function hospitalPlaceList(data) {
  return request({
    method: "post",
    url: "/waste/hospitalPlace/getList",
    data
  });
}
//暂存点新增编辑
export function hospitalPlaceSave(data) {
  return request({
    method: "post",
    url: "/waste/hospitalPlace/save",
    data
  });
}

//删除暂存点;
export function hospitalPlaceRemove(id) {
  return request({
    method: "delete",
    url: `/waste/hospitalPlace/remove/${id}`
  });
}
//下载二维码
export function generateQrCode(id) {
  return request({
    method: "get",
    url: `/waste/hospitalPlace/generateQrCode/${id}`,
    responseType: "blob"
  });
}
//批量下载二维码
export function generateQrCodeBatch(data) {
  return request({
    method: "post",
    url: "/waste/hospitalPlace/generateQrCode",
    responseType: "blob",
    data
  });
}
